package mr.ali.webvideo.controller;


import mr.ali.webvideo.model.Prizes;
import mr.ali.webvideo.service.IPrizesService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Mr-ali
 * @since 2025-09-06
 */
@RestController
@RequestMapping("/h5/prizes")
public class PrizesController {
@Resource
    private IPrizesService prizesService;

@GetMapping("/all")
    public List<Prizes> getPrizesList(){
        return prizesService.getPrizesList();
    }
}
